package com.admin.boot.modules.online.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * (OnlineTableField)表实体类
 *
 * @author makejava
 * @since 2024-01-10 09:37:31
 */
@Data
public class OnlineTableField {
    //主键
    private String id;
    //字段名称
    private String fieldName;
    //字段描述
    private String fieldDescribe;
    //字段类型
    private String fieldType;
    //字段类型长度
    private Integer fieldTypeLength;
    //小数长度
    private Integer fieldTypeDecimalLength;
    //表id
    private String tableId;
    //默认值
    private String defaultValue;
    //是否可以为空
    private boolean canNull;
    //是否是主键
    private boolean isPrimaryKey;


    public boolean getCanNull(){
        return this.canNull;
    }

    public boolean getIsPrimaryKey(){
        return this.isPrimaryKey;
    }

}

